package aquarium.factory;

import java.awt.Point;

import aquarium.factory.FishType;
import aquarium.gui.Aquarium;
import aquarium.items.Seaweed;
import aquarium.util.RandomNumber;

public class SeaweedFactory extends AquariumItemFactory<Seaweed> {

	@Override
	public Seaweed newItems(FishType type) {
		return newItems();
	}

	public Seaweed newItems(){
		int size = RandomNumber.randomValue(Seaweed.getMinWidth(), Seaweed.getMaxWidth());
		Point position = RandomNumber.randomPoint(0, Aquarium.SIZE_AQUA_X-Seaweed.getMaxWidth(), 0, Aquarium.SIZE_AQUA_Y-Seaweed.getMaxWidth());
		Seaweed sw = new Seaweed(position, size);
		return sw;
	}

}
